package com.euond.accv.mdm.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.euond.common.domain.AbstractEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Entity
@Table(name="bas_config")
@DynamicInsert //该注解会根据属性非空动态生成insert语句
public class BasConfig extends AbstractEntity<Integer> implements Serializable{
	private static final long serialVersionUID = 1L;
	
	/**
	 * id
	 */
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
    
	/**
	 * 配置名
	 */
    @Column(name="config_name")
    private String configName;
    
	/**
	 * 配置值
	 */
    @Column(name="config_value")
    private String configValue;
    
	/**
	 * 参数级别(0=系统级 1=客户级)
	 */
    @Column(name="config_level")
    private Integer configLevel;
    
	/**
	 * 状态
	 */
    @Column(name="status")
    private String status;
    
	/**
	 * 排列序号
	 */
    @Column(name="order_no")
    private Integer orderNo;
    
	/**
	 * 备注
	 */
    @Column(name="remarks")
    private String remarks;
    
	/**
	 * 建档人
	 */
    @Column(name="creator")
    private String creator;
    
	/**
	 * 建档时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="create_time")
    private Date createTime;
    
	/**
	 * 修改人
	 */
    @Column(name="modifier")
    private String modifier;
    
	/**
	 * 修改时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="modify_time")
    private Date modifyTime;
    
    
    
    public void setId(Integer id){
    	this.id = id;
    }
    public String getConfigName(){
    	return this.configName;
    }
    
    public void setConfigName(String configName){
    	this.configName = configName;
    }
    public String getConfigValue(){
    	return this.configValue;
    }
    
    public void setConfigValue(String configValue){
    	this.configValue = configValue;
    }
    public Integer getConfigLevel(){
    	return this.configLevel;
    }
    
    public void setConfigLevel(Integer configLevel){
    	this.configLevel = configLevel;
    }
    public String getStatus(){
    	return this.status;
    }
    
    public void setStatus(String status){
    	this.status = status;
    }
    public Integer getOrderNo(){
    	return this.orderNo;
    }
    
    public void setOrderNo(Integer orderNo){
    	this.orderNo = orderNo;
    }
    public String getRemarks(){
    	return this.remarks;
    }
    
    public void setRemarks(String remarks){
    	this.remarks = remarks;
    }
    public String getCreator(){
    	return this.creator;
    }
    
    public void setCreator(String creator){
    	this.creator = creator;
    }
    public Date getCreateTime(){
    	return this.createTime;
    }
    
    public void setCreateTime(Date createTime){
    	this.createTime = createTime;
    }
    public String getModifier(){
    	return this.modifier;
    }
    
    public void setModifier(String modifier){
    	this.modifier = modifier;
    }
    public Date getModifyTime(){
    	return this.modifyTime;
    }
    
    public void setModifyTime(Date modifyTime){
    	this.modifyTime = modifyTime;
    }
    
    @Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return this.id;
	}
}
